import i18n from '@src/locales';
import FormDateSetting from './FormDateSetting.vue'
import FormDatePreview from './FormDatePreview.vue'
import FormDate from './FormDate.vue'

import DateSearch from './extend/DateSearch.vue'
import TimePickRange from './extend/TimePickRange.vue'

let FormDateField = {
  formType: 'date', // 字段类型
  name: i18n.t('common.form.type.date'),
  isSystem: 0,
  component: {
    setting: FormDateSetting,
    preview: FormDatePreview,
    build: FormDate,
    extend: {
      date_search: DateSearch,
      time_pick_range: TimePickRange
    }
  }
}

export default FormDateField
